

import os
import numpy as np
import time

data = np.load(r"C:\Users\hejinyang\Desktop\数据\train_0_1.npy")
# data = np.load(r"C:\Python Projects\PycharmProjects\未取对数\IQ异常数据\异常数据分段npy文件\5条1200峰值异常数据\test_data_叠加sin异常_0_1.npy")
i = 0
while i < 5:
    path = "test_data_" + time.strftime("%Y_%m_%d_%H_%M_%S") + ".npy"
    print(path)

    try:
        os.makedirs(r"C:\Users\hejinyang\Desktop\project\0.000-6.400\test_data_normal")
    except:
        pass

    np.save(r"C:\Users\hejinyang\Desktop\project\0.000-6.400\test_data_normal\\" + path, data)
    time.sleep(1)
    i+=1







